package com.chenchen.tiguan.equipment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chenchen.tiguan.common.annotation.Excel;
import com.chenchen.tiguan.common.core.domain.BaseEntity;

/**
 * 设备列表对象 equipment
 * 
 * @author chenchen
 * @date 2025-04-13
 */
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long equipmentId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 类型ID */
    @Excel(name = "类型ID")
    private Long typeId;

    /** 所属场馆ID */
    @Excel(name = "所属场馆ID")
    private Long venueId;

    /** 型号 */
    private String model;

    /** 购入日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购入日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 0-可用,1-维修中,2-已报废 */
    @Excel(name = "0-可用,1-维修中,2-已报废")
    private Long currentStatus;

    /** 具体位置 */
    private String location;

    /** 设备二维码 */
    @Excel(name = "设备二维码")
    private String qrCode;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    /** 设备图片 */
    @Excel(name = "设备图片")
    private String img;

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setVenueId(Long venueId) 
    {
        this.venueId = venueId;
    }

    public Long getVenueId() 
    {
        return venueId;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }
    public void setCurrentStatus(Long currentStatus) 
    {
        this.currentStatus = currentStatus;
    }

    public Long getCurrentStatus() 
    {
        return currentStatus;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setQrCode(String qrCode) 
    {
        this.qrCode = qrCode;
    }

    public String getQrCode() 
    {
        return qrCode;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("equipmentId", getEquipmentId())
            .append("name", getName())
            .append("typeId", getTypeId())
            .append("venueId", getVenueId())
            .append("model", getModel())
            .append("purchaseDate", getPurchaseDate())
            .append("currentStatus", getCurrentStatus())
            .append("location", getLocation())
            .append("qrCode", getQrCode())
            .append("creatTime", getCreatTime())
            .append("createBy", getCreateBy())
            .append("img", getImg())
            .toString();
    }
}
